package com.senven.books.mybatis.baseEntity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * @author : longshengyi
 * @description :
 * @createDate : 2024/7/20 22:23
 */
@Getter
@Setter
public class BaseEntity extends SimpleEntity{

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID", example = "0")
    private Long id;

    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    private String tenantId = "000000";

    /**
     * 逻辑删除的标记
     */
    @ApiModelProperty(value = "逻辑删除的标记", example = "0")
    private Integer deleted = 0;
}
